#include <string>
#include <iostream>
using namespace std;
int main() {
	string line, word = "";
	getline(cin, line);
	line += " ";
	string mya;
	for (char ch : line)
	{
		if (ch == ' ')
		{
			if (word == "zero")mya += "0";
			if (word == "one")mya += "1";
			if (word == "two")mya += "2";
			if (word == "three")mya += "3";
			if (word == "four")mya += "4";
			if (word == "five")mya += "5";
			if (word == "six")mya += "6";
			if (word == "seven")mya += "7";
			if (word == "eight")mya += "8";
			if (word == "nine")mya += "9";
			word.clear();
		}
		else
		{
			word += ch;
		}
	}
	if(mya.size()== 3)
	{
		cout << mya;
	}
	else
	{
		cout << "Wrong input" << endl;
	}
}
